﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Engine.DAL.Repositories
{
    public class RepositoryManager : RepositoryManagerBase
    {
        public RepositoryManager()
            : base(WebObjectContext.Instance.Get())
        {
            string customSetting = ConfigurationManager.AppSettings["RepositoryManagerMode"];
            if (customSetting == null)
            {
                // Bind(typeof (ICompanyRepository), typeof (CompanyRepository));
            }
            else
            {
                //Bind(typeof(ICompanyRepository), typeof(CompanyRepository));
                //Bind(typeof(IContractRepository), typeof(ContractRepository));
                //Bind(typeof(ICategoryRepository), typeof(CategoryRepository));
            }
        }
    }
}

